import React, {component} from 'react';
import {
    View,
    StyleSheet,
    Image,
    TouchableOpacity,
    Text,
} from 'react-native'

export default class ViewUtils{
    static getLeftButton(callback){
        return <TouchableOpacity
                onPress={callback}>
            <Image 
                 style={{width:24,height:24,tintColor:'white'}} 
                 source={require('../../res/images/ic_arrow_back_white_36pt.png')}/>   
        </TouchableOpacity>
    }
    static getRightButton(title,callback){
        return <TouchableOpacity
                        onPress={callback}
                    >
                         <View style={{margin:10}}>
                             <Text style={{fontSize:14,
        color:'white'}}>{title}</Text>
                         </View>
                    </TouchableOpacity>
    }
}